package com.devilvan.betrice.opgg.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
* @author Evad.Wu
* @Description OPGG-英雄列表信息 映射
* @date 2022-10-04
*/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "OPGG_LEGEND")

@Entity
@Table(name = "OPGG_LEGEND")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "OPGG-英雄列表信息 映射")
public class OpggLegendPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -6252632665551799293L;
    @Schema(description = "Counter英雄ID")
    @TableField(value = "CHAMPION_ID")
    @Column(name = "CHAMPION_ID", columnDefinition = "BIGINT(19) NOT NULL COMMENT 'Counter英雄ID'")
    private Long championId;
    @Schema(description = "英雄称号")
    @TableField(value = "NAME")
    @Column(name = "NAME", columnDefinition = "VARCHAR(16) NOT NULL COMMENT '英雄称号'")
    private String name;
    @Schema(description = "英雄名称（英文）")
    @TableField(value = "KEY_NAME")
    @Column(name = "KEY_NAME", columnDefinition = "VARCHAR(64) NOT NULL COMMENT '英雄名称（英文）'")
    private String keyName;
    @Schema(description = "英雄名称（中文）")
    @TableField(value = "KEY_CN")
    @Column(name = "KEY_CN", columnDefinition = "VARCHAR(16) NOT NULL COMMENT '英雄名称（中文）'")
    private String keyCn;
    @Schema(description = "英雄头像URL")
    @TableField(value = "IMG_URL")
    @Column(name = "IMG_URL", columnDefinition = "TEXT(65,535) COMMENT '英雄头像URL'")
    private String imgUrl;
}
